package com.feiyun.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

/**
 * Function Desc: 用户条件查询实体
 *
 * @author yan
 * @since 2023/3/31 19:24
 */
@Setter
@Getter
public class UserConditionDto {
    @Range(min = 0, max = 80, message = "无效的年龄")
    private Byte startAge;

    @Range(min = 0, max = 80, message = "无效的年龄")
    private Byte endAge;

    /**
     * 0 = 未婚单身
     * 1 = 已婚离异
     * 2 = 已婚丧偶
     */
    @Range(min = 0, max = 2, message = "无效的婚姻状态")
    private Byte isDivorced;

    /**
     * 0 = 女
     * 1 = 男
     */
    @Range(min = 0, max = 1, message = "无效的性别设置")
    private Byte gender;


    @ApiModelProperty("自己id")
    private Integer selfUserId;

    @ApiModelProperty("他人id")
    private Integer otherUserId;

    @ApiModelProperty("是否完成注册")
    private Boolean isOverRegister;




}
